<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
	<head>
		<link rel="stylesheet" href="css/layout.css"></link>
		<link rel="stylesheet" href="css/style.css"></link>
		<title><?= $title ?></title>
	</head>
	<body>
		<div id="head">
			<div id="title">
				<h1><?= $title ?></h1>
			</div>
		</div>
		<div id="container">
			<?php if(count($error_messages) >= 1): ?>
			<div id="error_messages">
				<ul>
				<?php foreach($error_messages as $error_message): ?>
					<li class="error_message"><?= $error_message ?></li>
				<?php endforeach ?>
				</ul>
			</div>
			<?php endif ?>
			<div style="clear:both;" />
			<div id="left" class="column">
				<div id="content_container">
					<div id="subtitle">
						<h2><?= $subtitle ?> </h2>
					</div>
					<div id="content">
						 <?= $content ?> 
					</div>
				</div>
			</div>
			<div id="right" class="column">
				<?php include 'views/nav.php' ?>
			</div>
		</div>
	</body>
</html>